package com.gopay.common.domain.gsrt;
// Generated 2016-1-16 17:20:08 by Hibernate Tools 4.3.1.Final

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 发标标的状态 历史表
 */
@Entity
@Table(name = "GSRT_TENDER_BID_STATE_SUB")
public class GsrtTenderBidstateSub implements java.io.Serializable {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 
     * 投资ID
     */
    private Long id;
    /**
     * 发标主表id
     */
    private Long custTenderMasterId;
    /**
     * 标的状态
     */
    private String bidState;
    /**
     * (募集中、还款中、结束)时间
     */
    private Date createdTs;
    /**
     * 更新时间
     */
    private Date lastUpdTs;
    /**
     * 备注
     */
    private String  remark;
   /**
    * 预留字段
    */
    private String  remark1;
    /**
     * 预留字段
     */
    private String  remark2;
  
    
    @Id
    @SequenceGenerator(name = "GsrtTenderBidStateSubSequence", sequenceName = "GSRT_TENDER_BID_STATE_SUB_SEQ")
    @GeneratedValue(generator = "GsrtTenderBidStateSubSequence", strategy = GenerationType.SEQUENCE)
    @Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
   @Column(name = "CUST_TENDER_MASTER_ID", nullable = false, precision = 22, scale = 0)
    public Long getCustTenderMasterId() {
        return this.custTenderMasterId;
    }

    public void setCustTenderMasterId(Long custTenderMasterId) {
        this.custTenderMasterId = custTenderMasterId;
    }

    @Column(name = "BID_STATE", nullable = false, length = 2)
    public String getBidState() {
        return this.bidState;
    }

    public void setBidState(String bidState) {
        this.bidState = bidState;
    }
    
    @Column(name = "CREATED_TS", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }
    @Column(name = "REMARK",  length = 50)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "REMARK1",  length = 50)
	public String getRemark1() {
		return remark1;
	}

	public void setRemark1(String remark1) {
		this.remark1 = remark1;
	}
    @Column(name = "REMARK2",  length = 50)
	public String getRemark2() {
		return remark2;
	}

	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}
    
    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }
    
    
    
    
    
    
    
    


	

    
}
